﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon.Enums;
using BCCommon.TradingEnums;
using BCDto.Trading.Enquiry.SaleEnquiryChecklist;

namespace BCDto.Trading.Enquiry.SaleEnquiry
{
    /// <summary>
    /// 销售询盘
    /// </summary>
    public class SaleEnquiryRequestDto
    {
        /// <summary>
        /// 销售购物车Id
        /// </summary>		
        [Display(Name = "购物车Id")]
        public long? SaleShoppingCartId { get; set; }
        /// <summary>
        /// 销售询盘标题
        /// </summary>
        [Display(Name = "询盘标题")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(30, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string SaleEnquiryTitle { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>		
        [Display(Name = "用户Id")]
        public long? UserId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>		
        [Display(Name = "用户姓名")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(20, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string UserName { get; set; }
        /// <summary>
        /// 用户联系电话
        /// </summary>		
        [Display(Name = "用户联系电话")]
        public string Phone { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>		
        [Display(Name = "微信号")]
        public string WeChatNo { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>		
        [Display(Name = "公司名称")]
        public string CompanyName { get; set; }
        /// <summary>
        /// 客户地址
        /// </summary>		
        [Display(Name = "客户地址")]
        public string CustomerAddress { get; set; }
        /// <summary>
        /// 客户性别
        /// </summary>		
        [Display(Name = "客户性别")]
        public Sex? CustomerSex { get; set; }
        /// <summary>
        /// 询盘信息
        /// </summary>		
        [Display(Name = "询盘信息")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public string EnquiryMessage { get; set; }
        /// <summary>
        /// 询盘清单
        /// </summary>
        public SaleEnquiryChecklistRequestDto SaleEnquiryChecklist { get; set; }
    }
}

